package com.hzqx.syndata.proxy.jtProxy;

/**
 * 静态的代理的代理类
 * @author yinzhiping
 */
public class Proxy implements Subject{

    private  RealSubject realSubject;

    public Proxy(RealSubject realSubject){
        this.realSubject=realSubject;
    }
    @Override
    public void request() {
        System.out.println("以前祝大勇在哈尔滨是个crudBoy");
        realSubject.request();
        System.out.println("以后祝大勇要做架构师，要年薪百万！");
    }
}
